{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <form method="post" action="/admin/database/batch" class="form-inline" role="form" name="myform" id="myform">
            <div class="row">
                <div class="col-lg-12">
                    <div class="page-header">
                        <h3>数据备份 </h3>

                        <div class="opt-btn">
                            <input class="btn btn-primary" onclick="document.myform.action = '/admin/database/backups'" name="dosubmit" value="立即备份" type="submit">
                            <input class="btn btn-success" onclick="document.myform.action = '/admin/database/optimize'" name="dosubmit" value="优化表" type="submit">
                            <input class="btn btn-warning" onclick="document.myform.action = '/admin/database/repair'" name="dosubmit" value="修复表" type="submit">
                        </div>

                    </div>
                </div>
            </div>
            <div class="row">
                <div class="col-lg-12">
                    <table class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                                <th><input type="checkbox" name="chkall" id="chkall" checked class="checkbox" onclick="checkAll('prefix', this.form, 'tables')" /></th>
                                <th>表名</th>
                                <th>类型</th>
                                <th>编码</th>
                                <th>数据量</th>
                                <th>数据大小</th>
                                <th>创建时间</th>
                                <th>碎片</th>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td><input type="checkbox" class="checkbox" name="tables[]" checked value="{{$item.Name}}"></td>
                                <td >{{$item.Name}}</td>
                                <td >{{$item.Engine}}</td>
                                <td >{{$item.Collation}}</td>
                                <td >{{$item.Rows}}</td>
                                <td>{{$item.Data_length}}</td>
                                <td>{{$item.Create_time}}</td>
                                <td>{{$item.Data_free}}</td>
                            </tr>
                            {{/foreach}}
                        </tbody>

                    </table>
                </div>
            </div>
        </form>
    </div>
</body>
</html>
